<template>
	<view>
		<view class="group" style="background-color: white;">
			<view class="header">
				<view class="line"></view>
				<view class="header-title">合作品牌</view>
			</view>
			<view class="top-list">
				<view><image class="top-list-item" src="../../../static/linbao1.png" mode="widthFix"></image></view>
				<view><image class="top-list-item" src="../../../static/linbao1.png" mode="widthFix"></image></view>
				<view><image class="top-list-item" src="../../../static/linbao1.png" mode="widthFix"></image></view>
			</view>
		</view>
		<view class="group">
			<view class="header">
				<view class="line"></view>
				<view class="header-title">楼盘套餐</view>
			</view>
			<view class="list">
				<view class="item" v-for="index in 8" :key="index">
					<view v-if="index % 2 == 1">
						<view class="item-image"><image src="../../../static/build1.png" mode="widthFix"></image></view>
						<view class="item-text-content">
							<view class="item-title">某某某某某某套餐</view>
							<view class="horizontal">
								<view class="item-range">150-180m²</view>
								<view class="item-price">￥9999</view>
							</view>
							<view class="item-content">套餐具体套餐具体套餐具体套餐具体套餐具体</view>
						</view>
					</view>
					<view v-else>
						<view class="item-image"><image src="../../../static/build2.png" mode="widthFix"></image></view>
						<view class="item-text-content">
							<view class="item-title">某某某某某某套餐</view>
							<view class="horizontal">
								<view class="item-range">150-180m²</view>
								<view class="item-price">￥9999</view>
							</view>
							<view class="item-content">套餐具体套餐具体套餐具体套餐具体套餐具体</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	methods: {}
};
</script>

<style lang="less" scoped>
::-webkit-scrollbar {
	display: none;
}
.header {
	margin-left: 40rpx;
}
.header-title {
	font-size: 28rpx;
	margin-left: 20rpx;
}
.group {
	display: flex;
	flex-direction: column;
	padding: 28rpx 0;
}
.horizontal {
	display: flex;
	justify-content: space-between;
}
.top-list {
	overflow-x: scroll;
	overflow-y: hidden;
	display: flex;
	flex-direction: row;
	margin-top: 20rpx;
}
.top-list-item {
	display: block;
	width: 280rpx;
	margin-left: 40rpx;
}
.list {
	margin-top: 20rpx;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 40rpx;
	padding: 0 40rpx;
}
.item-text-content {
	padding: 16rpx 20rpx;
	background-color: white;
	border-radius: 0rpx 0rpx 12rpx 12rpx;
}
.item-title {
	font-size: 28rpx;
}
.item-image > image {
	width: 100%;
	display: block;
}
.item-range {
	font-size: 24rpx;
}
.item-price {
	color: #e54040;
}
.item-content {
	font-size: 20rpx;
	color: #666666;
}
</style>
